package com.lxy.dao;


import com.lxy.bean.Role;
import com.lxy.generic.GenericDao;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface RoleMapper extends GenericDao<Role, Integer> {
	int deleteByPrimaryKey(Integer id);

	int insert(Role record);

	int insertSelective(Role record);

	Role selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Role record);

	int updateByPrimaryKey(Role record);

	List<Role> getRolesByUserId(Integer userId);
}